﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cobit5SiteBasic.Master" AutoEventWireup="true" CodeBehind="CreateMember.aspx.cs" Inherits="Cobit5.Web.MemberShip.CreateMember" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_Left" runat="server">
    <img src="/CSS/Left_Writing.png" style="float:right;" />
    <br /><br />
    <p>1）填写用户名，检查其是否存在</p> 
    <p>2）填写注册信息</p>
    <p>3）确认后提交</p>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_Right" runat="server">
    <div class="YelloBar">
        &nbsp;&nbsp;&nbsp;新用户注册
    </div>
    <br />
    <div style="margin-left:30px;">
    <table class="CSSTableGreen">
        <tr>
            <td>填写项</td>
        </tr>
        <tr>
            <td>用户Id：</td>
            <td><asp:TextBox ID="TextBox_UserId" runat="server" MaxLength="60"></asp:TextBox><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_UserId" runat="server" ErrorMessage="*用户名不可为空" ForeColor="Red" ControlToValidate="TextBox_UserId"></asp:RequiredFieldValidator>
            </td>
            <td style="text-align:center;">点击这里检查用户Id是否存在
                <br /><asp:Button ID="Button_CheckUserId" runat="server" Text="检查" OnClick="Button_CheckUserId_Click" />
                <asp:Label ID="Label_CheckUserIdResult" runat="server" ForeColor="DarkBlue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>真实姓名</td>
            <td><asp:TextBox ID="TextBox_UserName" runat="server" MaxLength="64"></asp:TextBox><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_UserName" runat="server" ErrorMessage="*请填写真实姓名" ForeColor="Red" ControlToValidate="TextBox_UserName"></asp:RequiredFieldValidator>
            </td>
            <td>请填写真实姓名</td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><asp:TextBox ID="TextBox_Password" runat="server" TextMode="Password" MaxLength="128"></asp:TextBox><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator_Password" runat="server" ErrorMessage="*密码至少为8位字符" ForeColor="Red" ControlToValidate="TextBox_Password" ValidationExpression="\w{8,}"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Password" runat="server" ErrorMessage="*密码不能为空" ForeColor="Red" ControlToValidate="TextBox_Password"></asp:RequiredFieldValidator>
            </td>
            <td>密码至少8位长度</td>
        </tr>
        <tr>
            <td>再次输入密码：</td>
            <td><asp:TextBox ID="TextBox_Password2" runat="server" TextMode="Password" MaxLength="128"></asp:TextBox><br />
                <asp:CompareValidator ID="CompareValidator_Password2" runat="server" ErrorMessage="*两次输入的密码不相同" ForeColor="Red" ControlToCompare="TextBox_Password" ControlToValidate="TextBox_Password2"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Password2" runat="server" ErrorMessage="*请再次输入密码" ForeColor="Red" ControlToValidate="TextBox_Password2"></asp:RequiredFieldValidator>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>生日：</td>
            <td><asp:TextBox ID="TextBox_Birthday" runat="server" MaxLength="8"></asp:TextBox><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator_Birthday" runat="server" ErrorMessage="*生日格式不正确" ForeColor="Red" ControlToValidate="TextBox_Birthday" ValidationExpression="\d{8}"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Birthday" runat="server" ErrorMessage="*生日请勿为空" ControlToValidate="TextBox_Birthday" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>格式：20130214</td>
        </tr>
        <tr>
            <td>电子邮件：</td>
            <td><asp:TextBox ID="TextBox_Email" runat="server" MaxLength="256"></asp:TextBox><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator_Email" runat="server" ControlToValidate="TextBox_Email" ErrorMessage="*电子邮件格式不正确" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Email" runat="server" ErrorMessage="*公司邮件不能为空" ForeColor="Red" ControlToValidate="TextBox_Email"></asp:RequiredFieldValidator>
            </td>
            <td>输入公司邮箱</td>
        </tr>
        <tr>
           <td>手提电话：</td>
           <td><asp:TextBox ID="TextBox_Mobile" runat="server" MaxLength="32"></asp:TextBox><br />
               <asp:RegularExpressionValidator ID="RegularExpressionValidator_Mobile" runat="server" ErrorMessage="*手提电话格式不正确" ForeColor="Red" ControlToValidate="TextBox_Mobile" ValidationExpression="\d{8,}"></asp:RegularExpressionValidator>
               <asp:RequiredFieldValidator ID="RequiredFieldValidator_Mobile" runat="server" ErrorMessage="*手提电话不能为空" ForeColor="Red" ControlToValidate="TextBox_Mobile"></asp:RequiredFieldValidator>
           </td> 
           <td>输入手提电话，以便紧急联系</td>
        </tr>
        <tr>
            <td>公司内线电话：</td>
            <td><asp:TextBox ID="TextBox_Telephone" runat="server" MaxLength="32"></asp:TextBox><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator_Telephone" runat="server" ErrorMessage="*内线电话格式不正确" ForeColor="Red" ControlToValidate="TextBox_Telephone" ValidationExpression="\d{3,}"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Telephone" runat="server" ErrorMessage="*内线电话请勿为空" ForeColor="Red" ControlToValidate="TextBox_Telephone"></asp:RequiredFieldValidator>
            </td>
            <td>输入公司内线电话</td>
        </tr>
        <tr>
            <td>密码追回问题：</td>
            <td><asp:TextBox ID="TextBox_PasswordQuestion" runat="server" MaxLength="256"></asp:TextBox>
            </td>
            <td>若忘记密码，可通过回答此问题追回密码</td>
        </tr>
        <tr>
            <td>追回问题答案：</td>
            <td><asp:TextBox ID="TextBox_PasswordAnswer" runat="server" MaxLength="128"></asp:TextBox>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>权限选择：</td>
            <td><asp:DropDownList ID="DropDownList_Comment" runat="server">
                <asp:ListItem Selected="True" Value="Professional">专业人员</asp:ListItem>
                <asp:ListItem Value="AuditManager">审计管理员</asp:ListItem>
                <asp:ListItem Value="Administrator">系统管理员</asp:ListItem>
                </asp:DropDownList></td>
            <td></td>
        </tr>
        <tr>
            <td><asp:Button ID="Button_SubmitNewUser" runat="server" Text="提交" OnClick="Button_SubmitNewUser_Click" /></td>
            <td><asp:Label ID="Label_Result" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
    </table>
    </div>
    <br />
    <br />
</asp:Content>
